.carousel {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    height: 500px; /* Set a fixed height for the entire carousel */
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%; /* Make sure the inner container takes up the full height */
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 100%; /* Make each slide take up the full height */
}

.carousel-item img {
    width: 100%;
    height: 100%; /* Ensure the image covers the full height */
    object-fit: cover; /* This ensures the image scales to cover the container while maintaining its aspect ratio */
}



/* Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Animations for the title and description */
@keyframes fadeInTitle {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDescription {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carousel-caption {
    position: absolute;
    bottom: 170px; /* Move the caption slightly higher from the bottom */
    left: 30%;
    transform: translateX(-50%);
    text-align: center; /* Center align text */
    padding: 20px;
    border-radius: 10px;
    width: 80%; /* Width for caption box */
}
.carousel-caption h2 {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: Bold 700;
    font-style: normal;

    font-size: 95px;
    color: #fff; /* White text for title */
    margin: 0 0 10px;
    opacity: 0;
    animation: fadeInTitle 1s forwards; /* Apply animation */
}

.carousel-caption p {
    margin-top: 50px;
    margin-bottom: 40px;
    font-size: 18px;
    color: #fff; /* White text for description */
    opacity: 0;
    animation: fadeInDescription 2s forwards; /* Apply animation */
}
.text_noir {
    color: #161616 !important; /* White text for description */
}
.carousel-caption .buton {
 
    opacity: 0;
    animation: fadeInDescription 3s forwards; /* Apply animation */
}
.carousel-item.active .carousel-caption h2 {
    animation-delay: 0.5s; /* Delay title animation */
}

.carousel-item.active .carousel-caption p {
    animation-delay: 0.8s; /* Delay description animation */
}
.carousel-item.active .carousel-caption .buton {
    animation-delay: 1s; /* Delay description animation */
}

.custom-select {
    font-family: 'Raleway';
    display: block;
    width: 100%;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #999;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 5%22%3E%3Cpath fill=%22%23343a40%22 d=%22M2 0L0 2h4L2 0zM0 3l2 2 2-2H0z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
  }
  
  .custom-select:focus {
    border-color: #ffffff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 700;
  }
  